package com.zzlzd.drp.domain;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author ceshi
 * @Title:
 * @Package
 * @Description:
 * @date 2021-3-241:49
 */
public interface RankRep extends JpaRepository<RankDto,Integer> {

    /**
     * 查询默认升级统计信息
     * @param id
     * @return
     */
    @Query(nativeQuery=true, value=" SELECT * FROM level_log WHERE uid = ?1 ")
    RankDto getOneByUid(int id);
}
